import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';

class SlideImagePageWidget extends StatefulWidget {
  List<String> urls;

  SlideImagePageWidget(this.urls, {Key? key}) : super(key: key);

  @override
  _SlideImagePageWidgetState createState() => _SlideImagePageWidgetState();
}

class _SlideImagePageWidgetState extends State<SlideImagePageWidget> {
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 236,
      child: PageView.builder(
        itemCount: widget.urls.length,
        itemBuilder: (BuildContext context, int index) {
          return InkWell(
            onTap: () {},
            child: CachedNetworkImage(
              imageUrl: widget.urls[index],
            ),
          );
        },
      ),
    );
  }
}
